package cn.com.taiji.oospub.wechat.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Calendar;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProductComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("foodId")
    private String foodId;

    private String content;

    @TableField("createTime")
    private Calendar createTime;

    @TableField("userId")
    private String userId;

    private ProductCommentStatus status;

    private Integer star;

    private String istop;

    @TableField("orderId")
    private String orderId;

    public enum ProductCommentStatus{
        PREPASS("待发布"){},
        NOPASS("不发布"){},
        PASS("发布"){};
        private String value;

        private ProductCommentStatus(String value)
        {
            this.value=value;
        }
        public String getValue(){
            return value;
        }
    }


}
